package com.gome.ocean.service.datax;

import java.util.List;
import java.util.Map;

import com.gome.ocean.dao.model.datax.SqlChildrenNode;
import com.gome.ocean.dao.model.datax.SqlParentNode;
import com.gome.ocean.dao.model.datax.SqlTplMenuVO;

/**
 * @author zhangguoqing 2016年9月18日 下午4:21:36
 * @since 5.0.0
 */
public interface IWebSqlService {

	public void insertSqlParentModule(SqlParentNode node);

	public void insertSqlChildrenModule(SqlChildrenNode node);

	public void deleteSqlParentModuleById(Integer id);

	public void deleteSqlChildrenModuleByParentId(Integer parentId);

	public void deleteSqlChildrenModuleById(Integer id);

	public void updateSqlParentModuleNode(SqlParentNode node);

	public void updateSqlChildrenModuleNode(SqlChildrenNode node);

	public SqlParentNode getSqlParentNode(Integer id);

	public List<SqlParentNode> getSqlParentNodeList(Map<String, Object> map);

	public SqlChildrenNode getSqlChildrenNode(Integer id);

	public List<SqlChildrenNode> getSqlChildrenNodeList(Map<String, Object> map);

	//sql模板
	public List<SqlTplMenuVO> getSqlTplMenuVO(Map<String, Object> param);

	public List<SqlTplMenuVO> getSqlTplMenuVOCollection(Map<String, Object> param);
	
	public boolean insertSelective(SqlTplMenuVO sqlTplMenuVO);

	public boolean updateByPrimaryKeySelective(SqlTplMenuVO sqlTplMenuVO);
 
	public boolean deleteByPrimaryKey(Long id);
}
